package com.lekang.domain;

import com.lekang.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName NursingItemPlanBinding
 * @Description TODO
 * @Author lxm
 * @Date 2025年10月15日 17:49
 * @Version 1.0
 */
public class NursingItemPlanBinding extends BaseEntity {
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getNursingItemId() {
        return nursingItemId;
    }

    public void setNursingItemId(Long nursingItemId) {
        this.nursingItemId = nursingItemId;
    }

    public Long getNursingPlanId() {
        return nursingPlanId;
    }

    public void setNursingPlanId(Long nursingPlanId) {
        this.nursingPlanId = nursingPlanId;
    }

    public String getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(String serviceTime) {
        this.serviceTime = serviceTime;
    }

    public Integer getExecutionCycle() {
        return executionCycle;
    }

    public void setExecutionCycle(Integer executionCycle) {
        this.executionCycle = executionCycle;
    }

    public Integer getExecutionFrequency() {
        return executionFrequency;
    }

    public void setExecutionFrequency(Integer executionFrequency) {
        this.executionFrequency = executionFrequency;
    }

    public String getExtraField1() {
        return extraField1;
    }

    public void setExtraField1(String extraField1) {
        this.extraField1 = extraField1;
    }

    public String getExtraField2() {
        return extraField2;
    }

    public void setExtraField2(String extraField2) {
        this.extraField2 = extraField2;
    }

    /** 主键ID */
    private Long id;

    /** 护理项目外键编号 */
    private Long nursingItemId;

    /** 护理计划外键编号 */
    private Long nursingPlanId;

    /** 服务时间 */
    private String serviceTime;

    /** 执行周期（1:每日 2：每周 3:每月） */
    private Integer executionCycle;

    /** 执行频次（次数，默认1） */
    private Integer executionFrequency;

    /** 额外字段1 */
    private String extraField1;

    /** 额外字段2 */
    private String extraField2;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("nursingItemId", getNursingItemId())
                .append("nursingPlanId", getNursingPlanId())
                .append("serviceTime", getServiceTime())
                .append("executionCycle", getExecutionCycle())
                .append("executionFrequency", getExecutionFrequency())
                .append("createTime", getCreateTime()) // 继承自BaseEntity
                .toString();
    }
}
